<div style="clear:both"></div>
<?php if ($pager->haveToPaginate()): ?>
        <!-- Pagination -->
    <div class="pagination" style="background-color: white;">
        <ul>
            <li class="first <?php echo 1 == $pager->getPage() ? 'disabled' : ''?>">
              <a href="<?php echo url_for('show_region_page', array('id' => $ktd_region->getId(),
                                                                    'title_slug' => $ktd_region->getNameSlug(),
                                                                    'page' => 1))?>"><<</a>
            </li>
            <?php if($pager->getPage() > $pager->getFirstPage()): ?>
            <li class="prev">
              <a href="<?php echo url_for('show_region_page', array('id' => $ktd_region->getId(),
                                                                    'title_slug' => $ktd_region->getNameSlug(),
                                                                    'page' => $pager->getPage() - 1))?>"><</a>
            </li>
            <?php endif; ?>
              <?php foreach ($pager->getLinks() as $page): ?>
            <li class=" <?php echo $page == $pager->getPage() ? 'disabled' : ''?> ">
              <a href="<?php echo url_for('show_region_page', array('id' => $ktd_region->getId(),
                                                                    'title_slug' => $ktd_region->getNameSlug(),
                                                                    'page' => $page)) ?>"><?php echo $page ?></a>
            </li>
            <?php endforeach; ?>
            <?php if($pager->getPage() < $pager->getLastPage()): ?>
            <li class="next" <?php echo 1 == $pager->getPage() ? 'disabled' : ''?>">
              <a href="<?php echo url_for('show_region_page', array('id' => $ktd_region->getId(),
                                                                    'title_slug' => $ktd_region->getNameSlug(),
                                                                    'page' => $pager->getPage() + 1))?>">></a>
            </li>
            <?php endif; ?>
            <li class="next <?php echo (count($pager->getLinks()) == $pager->getPage()) ? 'disabled' : ''?>">
                <a href="<?php echo url_for('show_region_page', array('id' => $ktd_region->getId(),
                                                                'title_slug' => $ktd_region->getNameSlug(),
                                                                'page' => $pager->getLastPage()))?>">>></a>
            </li>
        </ul>
    </div>
        <!-- Fin de Pagination -->
<?php endif ?>
<div style="clear:both"></div>

